﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Services.System
{
    public class MobileChildAttendanceDto
    {
        /// <summary>
        /// 签到人数
        /// </summary>
        public int CheckInCount { get; set; } = 0;

        /// <summary>
        /// 未签到人数
        /// </summary>
        public int NotCheckOutCount { get; set; } = 0;

        /// <summary>
        /// 出勤率
        /// </summary>
        public string? Attendance { get; set; }
    }

    public class MobileAdmissionRecordDto
    {

        public string? Start { get; set; } = string.Empty;
        public string? End { get; set; } = string.Empty;
    }

    public class MobileAdmissionRecordDetailDto
    {
        public string? Date { get; set; }
        public string? Info { get; set; }
        public RecordDetailDataDto Data { get; set; }
    }

    public class RecordDetailDataDto
    {
        public string? Shangbanka { get; set; } = string.Empty;
        public string? Xiabanka { get; set; } = string.Empty;
    }

    public class CheckedInDto
    {
        /// <summary>
        /// 上午
        /// </summary>
        public CheckedInDetalTotalDto Morning { get; set; } = new CheckedInDetalTotalDto();

        /// <summary>
        /// 下午
        /// </summary>
        public CheckedInDetalTotalDto Afternoon { get; set; } = new CheckedInDetalTotalDto();
    }

    public class CheckedInDetalTotalDto
    {
        /// <summary>
        /// 总计人数
        /// </summary>
        public int Total { get; set; }

        /// <summary>
        /// 打卡人数
        /// </summary>
        public int CheckedTotal { get; set; }

        /// <summary>
        /// 总打卡率
        /// </summary>
        public string PunchRate { get; set; }

        /// <summary>
        /// 记录明细
        /// </summary>
        public List<CheckedInDetalDto> RecordDetails { get; set; } = new List<CheckedInDetalDto>();
    }

    public class CheckedInDetalDto
    {
        /// <summary>
        /// 班级
        /// </summary>
        public string? RowString { get; set; }

        /// <summary>
        /// 总人数
        /// </summary>
        public int Total { get; set; } = 0;

        /// <summary>
        /// 签到人数
        /// </summary>
        public int CheckedTotal { get; set; } = 0;

        /// <summary>
        /// 签到率
        /// </summary>
        public string? PunchRate { get; set; }
    }

    public class NotCheckedStatsDto
    {
        /// <summary>
        /// 未签到总人数
        /// </summary>
        public int NotCheckTotal { get; set; } = 0;

        /// <summary>
        /// 未签到人
        /// </summary>
        public List<Childrens> ChildList { get; set; } = new List<Childrens>();
    }
}
